<h2>Threads</h2>
<?php echo getLink('Activity Feed &raquo;','threads/feed') ?>
<?php if(!$threads): ?>
  <p>No threads.</p>
<?php else: ?>
  <ol id="threads">
    <?php foreach($threads as $thread): ?>
      <li class="thread">
        <span class="thread_name"><?php echo getLink($thread->name,"threads/show/$thread->id") ?></span>
        <span class="post_count">(<?php echo count($thread->posts) ?>)</span><br />
        <span class="thread_desc"><p><?php echo $thread->description ?></p></span><br />
      </li>
    <?php endforeach ?>
  </ol>
<?php endif ?>
<h2>New Thread</h2>
<div id="new_thread">
  <form method="post" action="<?php echo getURL("threads/save") ?>">
    <input name="thread_name" type="text"> Name<br />
    <input type="text" name="thread_desc" value=""> Description<br />
    <input type="submit" value="Add" accesskey="s">
  </form>
</div>